package com.rundatop.dao.model;

import java.util.List;

import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

@Table(name = "`base_phone`")
public class BasePhone {
    @Id
    @Column(name = "`id`")
    private String id;

    @Column(name = "`brand_id`")
    private String brandId;

    @Column(name = "`name`")
    private String name;

    @Column(name = "`sort_no`")
    private Integer sortNo;

    @Column(name = "`status`")
    private Integer status;
    
    @Transient
    private List<BaseGoods> children;
    


	public void setChildren(List<BaseGoods> children) {
		this.children = children;
	}

	public List<BaseGoods> getChildren() {
		return children;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSortNo() {
		return sortNo;
	}

	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public static final String ID = "id";

    public static final String BRAND_ID = "brandId";

    public static final String NAME = "name";

    public static final String SORT_NO = "sortNo";

    public static final String STATUS = "status";



}